////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                            //
//                                                         WNProject                                                          //
//                                                                                                                            //
//            This file is distributed under the BSD 2-Clause open source license. See License.txt for details.               //
//                                                                                                                            //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "WNScripting/inc/WNScriptLexerDefines.h"

#include <iostream>

WN_VOID WNLexerInitialize(WNLexerInfo* _lex) {
    _lex->mFilename = 0;
    _lex->mStart = 0;
    _lex->mMarker = 0;
    _lex->mEnd   = 0;
    _lex->mCharNo = 1;
    _lex->mLineNo = 1;
}

WN_VOID WNLexerReportError(WNLexerInfo* _lexer, const WN_CHAR* _message, const WN_CHAR* _lexed, WN_SIZE_T lineno, WN_SIZE_T _charno) {
    fprintf(stderr, "%s(%d:%d): Error : %s[%s]", _lexer->mFilename, lineno, _charno, _message, _lexed);
}